namespace CSharpPro._0928;

public class Work4
{
    public  void zhiShu()
    {
        int tap = 0;
        for (int i = 1; i <= 100; i++)
        {
            tap = 1;
            for (int j = 2; j * j <= i; j++)
            {
                if (i % j == 0)
                {
                    tap = 0;
                    break;
                }
            }

            if (tap == 1)
            {
                Console.Write(i + " ");
            }
        }
    }
}